﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Isuka.Cola;
using System.Runtime.InteropServices;

namespace Isuka.Samples.Cola01
{
    class Program
    {

        static void Main(string[] args)
        {
            var signature = "int MessageBoxA(pointer, string, string, uint)";

            using (var library = DynamicLibrary.Load("user32"))
            {
                dynamic d = library.GetDynamicDelegate(signature);
                d(IntPtr.Zero, "Dynamic Delegate", "test", 0);
            }
        }
    }
}
